package JsonInterface.test;


import com.message.source.SmsVoicePromptSender;
import com.message.source.SmsVoicePromptSenderResult;
public class T1 {
    public static void main(String[] args) {
        //打电话
        int appid = 1400036402;
        String appkey = "99407e02cf8515dcbc8a142b15d834f1";
        String phonenumber="18476242683";
        String message = "尊敬的用户您好！您的"+"ZKP51-63H项目中" + 52+"号低压智能断路器已检测出线路中存在"+"漏电故障"+"，请检修！";
        SmsVoicePromptSender smsVoicePromtSender = new SmsVoicePromptSender(appid, appkey);
        SmsVoicePromptSenderResult smsSingleVoiceSenderResult;
        try {
            smsSingleVoiceSenderResult = smsVoicePromtSender.send("86", phonenumber, 2, 2, message, "");
            System.out.println(smsSingleVoiceSenderResult);
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}
